<?php

$jenis = array('1' => 'Laki-laki', '2' => 'Perempuan');

function generate_input_z($type='', $array=array(), $name='', $sel='') {
    if ($type == 'radio') {
        foreach ($array as $key => $val) {
            echo '<label class="radio">';
            echo '<input data-toggle="radio" type="' . $type . '" name="' . $name . '" value="' . $key . '"/>' . $val . '&nbsp;';
            echo '</label>';
        }
    } else {
        foreach ($array as $key => $val) {
            echo '<input type="' . $type . '" name="' . $key . '" value="' . $key . '"/>' . $val . '&nbsp;';
        }
    }
}
?>
<div class="page">
  <img src="<?php echo base_url(); ?>/assets/img/premium.jpg" alt="premium step" style="margin-top:-20px;">
    <div class="container">
        <div class="span10 offset1" >

<h4>REGISTRASI PREMIUM</h4>
<div id="profil-side">
  <p>
    Untuk menjadi anggota premium, 
    <ol>
      <li>Anda harus menyetor deposit dengan jumlah minimal Rp. 100.000,00 atau kelipatannya.</li>
      <li>Deposit ini ditransfer ke PT. Sumber Daya Informasi, rekening Bank Syariah Mandiri nomor 704800988</li>
      <li>Deposit ini tetap menjadi hak Anda. Bila Anda ingin mencairkannya ke dalam rupiah akan dikenakan biaya pencairan sebesar 4%.</li>      
    </ol>
  </p>
<form name="go" method="POST" action="<?php echo site_url().'/profil/gopremium/'.$output['id'];?>">  
              <div class="row span12">
              <div class="span2">Username</div>   
              <div class="span4"><strong><?php echo $output['username'];?></strong></div>
              <input type="hidden" name="username" value="<?php echo $output['username'];?>"/>
              </div>
              <div class="row span12">
              <div class="span2">Nama</div>
              <div class="span4"><strong><?php echo $output['name'];?></strong></div>
              <input type="hidden" name="name" value="<?php echo $output['name'];?>"/>
              </div>
              <!-- <div class="row">
              <div class="span2">Password</div>   
              <div class="span4"><input class="span3" type="password" name="password" value="" placeholder="password"/></div>
              </div> -->
              <div class="row span12">
              <div class="span2">Email </div>   
              <div class="span4"><strong><?php echo $output['email'];?></strong></div>
              <input type="hidden" name="email1" value="<?php echo $output['email'];?>"/>
              </div>
              <div class="row span12">
              <div class="span2">Alamat</div>
              <div class="span4"><strong><?php
              if($output['address']!=""){ 
                echo $output['address'];
              } else {
                echo '-';
              }
              ?></strong></div>
              <input type="hidden" name="address1" value="<?php echo $output['address'];?>"/>
              </div>
              <div class="row span12">
              <div class="span2">Kota</div>
              <div class="span4"><input class="span3" type="text" name="city" value="" /></div>
              </div>
              <div class="row span12">
              <div class="span2">Kode POS</div>
              <div class="span4"><input class="span3" type="text" name="postal_code" value="" /></div>
              </div>
              <div class="row span12">
              <div class="span2">Telepon</div>    
              <div class="span4"><strong><?php echo $output['phoneNumber'];?></strong></div>
              <input type="hidden" name="phone" value="<?php echo $output['phoneNumber'];?>"/>
              </div>
              <div class="row span12">
              <div class="span2">Website (optional)</div>
              <div class="span4"><input class="span3" type="text" name="website" value="" /></div>
              </div>
              <div class="row span12">
              <div class="span2">Tentang saya</div>
              <div class="span4"><strong><?php 
              if($output['bio']!=""){
                echo $output['bio'];
              } else { echo '-';}
              ?></strong></div>
              <input type="hidden" name="aboutme" value="<?php echo $output['bio'];?>"/>
              </div>
              <div class="row span12">
              <div class="span2">Tanggal lahir</div>
              <div class="span4"><input class="span3" type="date" name="dob" value="" /></div>
              </div>
              <div class="row span12">
              <div class="span2"></div>
              <div class="span4"><input type="submit" class="btn btn-primary offset1" value="GO PREMIUM"/></div>
              </div>
              <input type="hidden" name="password1" value="<?php echo $output['password'];?>"/>
              <div class="row">
              <div class="span7 offset3">
              <!-- <input type="submit" class="btn btn-primary btn-large span3 offset" value="GO PREMIUM"/> -->
          </div></div>
          </form>
        </div>
    <br/>
</div>
</div>
</div>
